home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / programming / c / pmm / doku / libdoku / memlib.read.me < prev    next >
Text File  |  1999-06-14  |  579b  |  26 lines

  1. To see MemLib in action, do the following:
  2.  
  3. 1. Compile and link the example program:
  4.  
  5.       sc example.c link
  6.       
  7. 2. Run the example program:
  8.  
  9.       example
  10.       
  11.    Note that nothing seems to happen.  The program has several bugs, but
  12.    they don't get caught!
  13.  
  14. 3. Recompile, but this time enable memory debugging:
  15.  
  16.       sc example.c link define MWDEBUG=1 lib memwatch.lib
  17.  
  18. 4. Run the program again:
  19.  
  20.       example
  21.  
  22.    This time the MemWatch library caught the errors and told you
  23.    exactly where they occurred.
  24.  
  25. See the file "memlib.doc" for information on using memlib.
  26.